<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/taglib/cw" prefix="CW" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--系统css  -->
<link href="<%=basePath%>css/en/list.css" rel="stylesheet" type="text/css">
<!--通用js  -->
<script type="text/javascript" src="<%=basePath%>js/commons/common_list.js"></script>
<script type="text/javascript" src="<%=basePath%>js/My97DatePicker/WdatePicker.js"></script>
</head>
<body >
<form method="post" id="srcForm" name="srcForm" action="<%=basePath%>/order/findList.action" >
<div class="pageheader">
	<div class="pagetitle">
	<!-- 模块名称  -->
	<s:property value="actionTitle" />
	</div>
	<!-- 列表头 -->
	<div class="pageheadercontent">
		<!-- 查询条件 -->
		<table class="searchtbl">
			<tr>
	            <th width="15%">
	            	订单编号：
	            </th>
	            <td width="18%">
	           		<input type="text" name="order.id" id="id" value="<s:property value="order.id" />">
	            </td>
	            <th width="15%">
	            	会员手机号：
	            </th>
	            <td width="18%">
	           		<input type="text" name="order.member_id" id="member_id" value="<s:property value="order.member_id" />">
	            </td>
           	</tr>
           	<tr>
	            <th>
	            	订单时间：
	            </th>
	            <td colspan="2" style="text-align: left">
            		<input id="start_time" name="order.start_time" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'end_time\')}'});" readonly="readonly" type="text" class="Wdate" value="<s:property value="order.start_time" />" style="width:25%"/> 
            		-
	            	<input id="end_time" name="order.end_time" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',minDate:'#F{$dp.$D(\'start_time\')}'});" readonly="readonly" type="text" class="Wdate" value="<s:property value="order.end_time" />" style="width:25%"/> 
	            </td>
           	  	<td style="text-align: center;">
					<input type="button" class="searchbtn" value="搜索" onclick="_search()">
					<input type="button" class="resetbtn" value="重置" onclick="_reset()">
				</td>
			</tr>
		</table>
	</div>
</div>
<table class="gridview tablesorter" cellpadding="0" cellspacing="0" width="100%">
	<thead>
	<tr  class="gridview_color">
		<th>订单编号</th>
        <th>会员</th>
        <th>金额</th>
        <th>消费积分</th>
        <th>代金币</th>
        <th>创建时间</th>
        <th class="controlTh" >操作</th>
    </tr>
    </thead>
    <tbody>
    <s:if test="page.resultList.size()>0">
        <s:iterator value="page.resultList" var="stype" status="status">
        <s:if test="%{#status.count%2 == 0}">
		<tr class="gridview_color">
		</s:if>
            <td title="<s:property value="id" />"><s:property value="id" /></td>
            <td title="<s:property value="member_id" />"><s:property value="member_id" /></td>
            <td title="<s:property value="amount" />"><s:property value="amount" /></td>
            <td title="<s:property value="spend_score" />"><s:property value="spend_score" /></td>
            <td title="<s:property value="spend_gold" />"><s:property value="spend_gold" /></td>
            <td title="<s:date name="create_time" format="yyyy/MM/dd HH:mm:ss" />"><s:date name="create_time" format="yyyy/MM/dd HH:mm:ss" /></td>
			<td><a href="#" onclick="_detail('<%=basePath%>/order/gotoDetail.action?id=<s:property value="id" />','订单详情');return false;">[&nbsp;详情&nbsp;]</a></td>
        </tr>
        </s:iterator>
    </s:if>
    </tbody>
</table>
<s:else>
	<jsp:include page="../../common/nullPage.jsp" />
</s:else>
<!--分页条-->
<CW:page property="page" url="/order/findList.action"></CW:page>
</form>
<span class="_height"></span>
<script type="text/javascript">
	function _reset(){
		$("#id").val("");
		$("#shop_id").val("");
		$("#member_id").val("");
		$("#start_time").val("");
		$("#end_time").val("");
	}
</script>
</body>
</html>
